export { isTopLevel }; /** * Whether an offset in a shader sits outside every block, which is where a * reader looks for the inputs of a module. * * Braces are counted from the start of the source, ignoring those inside a * comment or a string, so a declaration in a function body is told apart from * one beside it at the top of the file. */ declare const isTopLevel: (source: string) => (offset: number) => boolean;